//phone 
Ext.form.VTypes['phoneVal'] = /^((\d{3,4}-)*\d{7,8}(-\d{3,4})*|1[5384]\d{9})$/ ;
Ext.form.VTypes['phoneText'] = "该输入项必须是电话号码格式，如:0311-3088100或者 15630183323";
Ext.form.VTypes['phone'] = function(v) {
	return Ext.form.VTypes['phoneVal'].test(v);
}


//userName
Ext.form.VTypes['userNameVal'] = /^[\w\-]+$/ ;
Ext.form.VTypes['userNameText'] = "该输入项只能由英文字符,数字以及下划线以及横线组成，如：lx-luoxw_33";
Ext.form.VTypes['userName'] = function(v) {
	return Ext.form.VTypes['userNameVal'].test(v);
}


//userName
Ext.form.VTypes['number1Val'] = /^[0-9]*$/ ;
Ext.form.VTypes['number1Text'] = "该输入项只能是数字,如:1,2,99等...";
Ext.form.VTypes['number1'] = function(v) {
	return Ext.form.VTypes['number1Val'].test(v);
}